//
//  MKDetailsItemsObject.m
//  YangDongXi
//
//  Created by 杨鑫 on 15/12/14.
//  Copyright © 2015年 yangdongxi. All rights reserved.
//

#import "MKDetailsItemsObject.h"

@implementation MKDetailsItemsObject
+ (NSDictionary *)propertyAndKeyMap
{
    return @{
             @"orderItemUid" : @"order_item_uid",
             @"itemUid" : @"item_uid",
             @"itemName" : @"item_name",
             @"iconUrl" : @"icon_url",
             @"skuSnapshot" : @"sku_snapshot",
             @"deliveryType" : @"delivery_type",
             @"itemTypeOne":@"item_type",
             @"paymentAmount":@"payment_amount",
             @"refundStatus":@"refund_status",
             @"paymentAmount":@"payment_amount",
             @"discountAmount":@"discount_amount",
             @"point":@"point_amount",
             @"skuUid":@"sku_uid",
             @"valueServiceList":@"service_list"

             };
}

+ (Class)classForArrayItemWithName:(NSString *)propertyName andIndex:(NSInteger)index
{
    if ([propertyName isEqualToString:@"valueServiceList"])
    {
        return [MKValueAddedServiceObject class];
    }
    return nil;
}


+ (NSString *)refundStatusWithString:(MKRefundStatu)refundStatus{
    return @{@(MKApplyStatu)            : @"申请退款中" ,
             @(MKProcessingStatu)       : @"等待退款" ,
             @(MKrefuseStatu)           : @"不同意" ,
             @(MKFinishedStatu)         : @"退款完成" ,
             @(MKFailedStatu)           : @"退款失败" }[@(refundStatus)];
}
@end
